const path = require('path');
const fpath = 'E:/htmlspace/nodejs/day01/06.path.join方法的使用.js';
// 通过path.extname()方法来获取文件的后缀
const extname = path.extname(fpath);
console.log(extname);
const basename = path.basename(fpath, extname);
console.log(basename);